import request from '@/utils/request'

// 查找楼市圈
export function findCircle() {
  return request({
    url: '/consumer/consumer/findCircleList',
    method: 'post'
  })
}

// 查找聊天展示
export function findMessageListPage() {
  return request({
    url: '/consumer/consumer/findMessageListPage/',
    method: 'post'
  })
}

// 查找特定聊天记录
export function findMessageRecordByOne(data) {
  return request({
    url: '/consumer/consumer/findMessageRecordByOne',
    method: 'post',
    data
  })
}

// 查找特定聊天记录
export function sendMessage(data) {
  return request({
    url: '/consumer/consumer/sendMessage',
    method: 'post',
    data
  })
}

// 更新聊天记录
export function findNewMessage(data) {
  return request({
    url: '/consumer/consumer/findMessageRecordByOne',
    method: 'post',
    data
  })
}

// 更新聊天记录
export function findUser() {
  return request({
    url: '/consumer/consumer/findUser',
    method: 'post'
  })
}

// 更新聊天记录
export function findFriend() {
  return request({
    url: '/consumer/consumer/findFriend',
    method: 'post'
  })
}

// 房源
export function findHouseList() {
  return request({
    url: '/consumer/consumer/findHouseList',
    method: 'post'
  })
}

// 浏览记录
export function addWatchNum(data) {
  return request({
    url: '/consumer/consumer/addWatchNum',
    method: 'post',
    data
  })
}
